package com.rdtravel.jaxb;

import com.rdtravel.entities.Trip;

import java.util.Collections;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(namespace = Constants.NAMESPACE)
@XmlAccessorType(XmlAccessType.FIELD)
public class Trips {
	@XmlElement(name = "trip")
	private List<Trip> trips;

	public Trips(List<Trip> trips) {
		this.trips = trips;
	}

	protected Trips() {

	}

	public List<Trip> getTrips() {
		return Collections.unmodifiableList(trips);
	}

	public void setTrips(List<Trip> trips) {
		this.trips = trips;
	}

}
